package com.example.nyf.entity;

import lombok.Data;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ToString
public class SysUser {

    private Integer id;

    private Integer dept_id;

    @NotNull(message = "姓名不能为空")
    @Length(min = 2,max = 10,message = "姓名长度需2-10个字符")
    private String user_name;

    private String password;

    private String phone;

    private String avatar;

    private String salt;

    private Integer status;

    private Integer login_time;
    private String login_ip;

    private Integer login_num;
    private String remark;

    private Integer add_user_id;

    private String add_user_name;

    private Integer add_time;


}
